package org.example.domain.vo.report.account;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "账户流水视图")
public class AccountBillVO {
    @ApiModelProperty("编号")
    private String number;

    @ApiModelProperty("类型")
    private String subType;

    @ApiModelProperty("单位信息")
    private String supName;

    @ApiModelProperty("金额")
    private BigDecimal changeAmount;

    @ApiModelProperty("余额")
    private BigDecimal currentAmount;

    @ApiModelProperty("单据时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operTime;

    @ApiModelProperty("单据类型")
    private String accountType;

}
